package com.zjmzxfzhl.modules.app.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zjmzxfzhl.common.core.base.BaseEntity;
import com.zjmzxfzhl.common.core.validator.constraints.LengthForUtf8;
import java.util.Date;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 【】实体类
 * 
 * @author 张森荣
 */
@Data
@TableName("T_APP_ALARM")
public class AppAlarm extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId
    @NotNull
    @LengthForUtf8(max = 32)
    private String alarmId;

    /**
     * 事务类型
     */
    @NotNull
    @LengthForUtf8(max = 2)
    private String alarmType;

    /**
     * 事务类型ID
     */
    @NotNull
    @LengthForUtf8(max = 32)
    private String alarmTypeId;

    /**
     * 提醒说明
     */
    @NotNull
    private String content;

    /**
     * 提醒日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date alarmDate;

    /**
     * 事务状态
     */
    @NotNull
    @LengthForUtf8(max = 2)
    private String status;

    /**
     * 事务名称
     */
    @NotNull
    @LengthForUtf8(max = 100)
    private String name;

    /**
     * 事务提醒ID
     */
    @LengthForUtf8(max = 32)
    private String setId;

    /**
     * 事务接收成员
     */
    @LengthForUtf8(max = 1000)
    private String userIds;
}